package com.example.iocanddi.Controller;

import com.example.iocanddi.Service.UserService;
import com.example.iocanddi.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    @Autowired
    private UserService userService = new UserService();

    @Autowired
    private User user;

    public void sayHi(){
        System.out.println("hi");
        userService.sayHi();
        System.out.println(user);
    }
}
